<?php

namespace App\Kuafu\Activity\Enum;

class ActivityEnum
{
    const TYPE_REGISTRATION            = 1;
    const TYPE_POS_ACTIVITY            = 2;
    const TYPE_COUPON_PACKAGE          = 3;
    const TYPE_START_BUSINESS_ACTIVITY = 4;
    const TYPE_DAILY_ACTIVITY          = 5;
    const TYPE_FULL_GIFT_ACTIVITY      = 6;

    const MAX_END_AT = 4294967295;

    /**
     * 活动类型
     */
    const TYPES = [
        self::TYPE_REGISTRATION            => '注册送券',
        self::TYPE_POS_ACTIVITY            => '店内活动',
        self::TYPE_COUPON_PACKAGE          => '券包',
        self::TYPE_START_BUSINESS_ACTIVITY => "开业活动",
        self::TYPE_DAILY_ACTIVITY          => "日常活动",
        self::TYPE_FULL_GIFT_ACTIVITY      => "满赠活动",
    ];

    /********/

    const SHOP_TYPE_ALL       = 0;
    const SHOP_TYPE_FRANCHISE = 1;
    const SHOP_TYPE_DIRECT    = 2;
    const SHOP_TYPE_SELECTION = 3;

    /**
     * 店铺类型
     */
    const SHOP_TYPES = [
        self::SHOP_TYPE_ALL       => '全部门店',
        self::SHOP_TYPE_FRANCHISE => '加盟门店',
        self::SHOP_TYPE_DIRECT    => '直营门店',
        self::SHOP_TYPE_SELECTION => '已选门店',
    ];

    const STATUS_PREPARE = 0;
    const STATUS_RUNNING = 1;
    const STATUS_SUSPEND = 2;
    const STATUS_ENDED   = 3;

    /**
     * 活动状态
     */
    const STATUS = [
        self::STATUS_PREPARE => "未开始",
        self::STATUS_RUNNING => "进行中",
        self::STATUS_SUSPEND => "暂停",
        self::STATUS_ENDED   => "已结束",
    ];

    const TIME_TYPE_LONG  = 1;
    const TIME_TYPE_SHORT = 2;

    const TIME_TYPES = [
        self::TIME_TYPE_LONG  => '长期活动',
        self::TIME_TYPE_SHORT => '短期活动',
    ];

    const IS_ATTEND_YES  = 1;
    const IS_ATTEND_NO   = 0;
    const IS_ATTEND_TEXT = [
        self::IS_ATTEND_NO  => "未关注公众号",
        self::IS_ATTEND_YES => "已关注公众号"
    ];

    const CHANNEL_APPLET = 1;
    const CHANNEL_POS    = 2;
    const CHANNEL_TEXT   = [
        self::CHANNEL_APPLET => "小程序",
        self::CHANNEL_POS    => "pos",
    ];

    const AUTO_JOIN_YES  = 1;
    const AUTO_JOIN_NO   = 0;
    /**
     * pos满赠活动是否自动加入
     */
    const AUTO_JOIN_TEXT = [
        self::AUTO_JOIN_YES => "自动加入",
        self::AUTO_JOIN_NO  => "手动加入"
    ];

    const PRODUCT_TYPE_ALL  = 0;
    const PRODUCT_TYPE_PART = 1;
    const PRODUCT_TYPE_TEXT = [
        self::PRODUCT_TYPE_ALL  => "全部",
        self::PRODUCT_TYPE_PART => "部分"
    ];
}
